package com.ruoyi.edu.api.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 教育微服务远程调用接口
 *
 * @author isahino
 * @version 1.0
 * @date 2023/9/23 10:37
 */
@FeignClient("ruoyi-edu")
public interface IEduClient {
    /**
     * 远程调用，order模块创建订单时向edu模块获取课程信息
     *
     * @param courseId 课程id
     * @return 课程详细信息
     */
    @RequestMapping("/edu/course/{courseId}")
    AjaxResult getCourseInfo(@PathVariable("courseId") String courseId);
}
